<template>
	<view class="firstNav">
		<view class="iconfont icon-sousuo icon">
		</view>
		<view class="middle">
			<navigator open-type="switchTab" class="text" url="/pages/index/index">
				推荐
			</navigator>
			<navigator open-type="navigate" class="text" url="/pages/city/city">
				同城
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		name:"first-nav",
		data() {
			return {
				
			};
		}
	}
</script>

<style>
.firstNav{
	width:100%;
	position:fixed;
	top:25px;
	left: 0;
	height:35px;
	line-height: 35px;
	margin:0 auto;
	z-index: 20;
}
.icon{
	position: absolute;
	top:0;
	left: 0;
	width: 20%;
	color: #fff;
	text-align: center;
	font-size: 20px;
}
.middle{
	text-align: center;
}
.text{
	display: inline;
	color:#fff;
	margin: 0 10px;
}
</style>
